package packets.s2cpackets;

import entities.Player;
import packets.SPacket;

/**
 * Login Request
 * Sent by the server if it accepts the clients login request. If it didn't,
 * a kick (0xff with reason) should be sent. 
 *
 */
public class S0x01 extends SPacket {
	/**
	 * TODO: Make this information somewhat usefull :)
	 * @param player
	 */
	public S0x01(Player player) {
		super(0x01);
		addInt(player.geteid());
		addString("");
		addString("DEFAULT");	//Level Type: DEFAULT or SUPERFLAT
		addInt(1);				// Server mode (0: survival, 1: creative)
		addInt(0);				// Dimension   (-1: nether, 0: overworld, 1: the end)
		add((byte) 1);			// Difficulty
		add((byte) 128);		// World height
		add((byte) 0x08);		// Max Players	
	}

}
